<script template-helpers>
    var state = 'a';
    var states = {
        foo: 'b'
    };
</script>
<p>${(states['foo'] || state)[0].toUpperCase()}</p>
